<template>
	<div class="train-file maxW">
		<div class="crumbs-link">
			<span @click="goback()">培训列表</span>
			<router-link to="/train/teacher-detail"><i>></i>XXX培训</router-link>
			<strong><i>></i>这是文档名称</strong>
		</div>

		<div class="train-file-wp clear">
			<div class="train-file-l fl">
				<div class="train-file-l-head clear">
					<div class="train-file-l-icon fl">
						<img src="../../../../public/images/format/resourceicon1.png" alt="">
					</div>

					<div class="train-file-l-title">
						<div class="train-file-l-title-1 clear">
							<span>2018年高考语文资料</span>
							<el-button type="primary">下载</el-button>
						</div>

						<div class="train-file-l-title-2">
							<span>qiu_m</span>
							<i>上传于2016-02-12</i>
							<i>大小：71.6KB</i>
							<i>评分<strong>9</strong></i>
						</div>
					</div>

					<div class="train-file-l-info">
						<span>
							<i class="ipng icon_see"></i>
							<em>5000点击</em>
						</span>
						<span>
							<i class="ipng but_Collection02_down"></i>
							<em>700收藏</em>
						</span>
						<span>
							<i class="ipng but_doland02_up"></i>
							<em>9000下载</em>
						</span>
					</div>
					
					<div class="train-file-l-preview">
						
						<div class="train-file-l-preview-hover">
							<img src="../../../../public/images/image08.png">
							<span>该资源仅供下载，不支持预览</span>
						</div>
					</div>

					<div class="train-file-l-v clear">
						<div class="train-file-l-score box">
							<span>评分</span>
							<el-rate
								v-model="score_value"
								disabled
								show-score
								text-color="#ff9900"
								score-template="{value}">
							</el-rate>
						</div>

						<div class="train-file-l-r  fr">
							
							<div class="train-file-l-share box">
								<span>分享至</span>
								<div>
									<a class="ipng but_weichat_up" href="###"></a>
									<a class="ipng but_qq_up" href="###"></a>
									<a class="ipng but_weibo_up" href="###"></a>
								</div>
							</div>

							<div class="train-file-l-collection box">
								<span>收藏 <i class="ipng Collection04"></i></span>
								<span>已收藏 <i class="ipng collection08"></i></span>
							</div>
							

						</div>
	
					</div>

				</div>
			</div>

			<div class="train-file-r">
				
				<div class="train-file-r-h clear">
					<span>同类推荐</span>
					<i>换一批</i>
				</div>

				<ul>
					<li class="train-file-r-list clear">
						<div class="train-file-r-list-icon fl">
							<img src="../../../../public/images/format/resourceicon2.png">
						</div>

						<div class="train-file-r-list-txt">
							<a href="###">小学一年级语文期中语文试卷答案</a>
							<div>
								<span>下载：556</span>
								<span>小学：一年级</span>
							</div>
						</div>
					</li>
					<li class="train-file-r-list clear">
						<div class="train-file-r-list-icon fl">
							<img src="../../../../public/images/format/resourceicon2.png">
						</div>

						<div class="train-file-r-list-txt">
							<a href="###">小学一年级语文期中语文试卷答案</a>
							<div>
								<span>下载：556</span>
								<span>小学：一年级</span>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</template>

<script>
	
	export default {
		data(){
			return {
				score_value: 8.8,
				file_info: ''
			}
		},
		created(){
			this.get_file()
		},
		methods: {
			get_file(){
				let success = (res=>{
					let data = res.data;

				})

				this.$ajax({
					url: 'api/Train/getvideoslist',
					methos: 'get',
					params: {
						userid: this.$g.user_id,
						page_index: this.page_index,
						page_size: this.page_size
					},
					func: {
						success: success
					}
				})
			},
			goback(){
				this.$router.back(-1)
			}
		}
	}
</script>